# coding=utf-8


def lunYar(year) :
    # option1

   # if year % 4 != 0 :
   #     return False;
   # elif year % 400 == 0:
   #     return  True;
   # elif year % 100 == 0:
   #     return False;
   # else :
   #     return True;

    # option2
    # if year % 4 != 0 :
    #    return False;
    # if year % 400 == 0:
    #    return  True;
    # if year % 100 == 0:
    #    return False;
    # return True

    # option3
    return year % 4 == 0 and year % 400 == 0 or year % 4 == 0 and year % 400 != 0 and year % 100 != 0;


def lunYar2(year):
    # option1
    # if year % 400 == 0:
    #    return  True;
    # if year % 100 != 0 and year % 4 == 0:
    #     return True;
    # return False;

    # option2
    if year % 100 == 0:
        return year % 400 == 0;
    return year % 4 == 0;

    # option3
    # return year % 100 == 0 and year % 400 == 0 or year % 100 != 0 and year % 4 == 0;

if __name__ == '__main__':
    print(lunYar(2004));
    print(lunYar(2008));
    print(lunYar(2400));
    print(lunYar(2003));
    print(lunYar(2100));
    print(lunYar(2200));